package com.company;

import java.io.File;
import java.io.IOException;

/**
 * @author 杨东
 */
public class FileTest {
    public static void main(String[] args) throws IOException {
        //        File file= new File("..");
        //        System.out.println(file.getPath());
        //        System.out.println(file.getAbsolutePath());
        //        System.out.println(file.getCanonicalPath());
        //        File file = null;
        //        File dir = new File("C:/");
        //        file = File.createTempFile
        //                ("myTest", ".txt", dir);
        //        System.out.println(file.getPath());
        File l =  File.createTempFile("myTest",".txt");

        System.out.println(l.isFile());
        System.out.println(l.getAbsolutePath());

    }
}
